cmake_minimum_required(VERSION 3.8)
project(CRNN)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

include(cmake/onnxruntime.cmake)

include_directories(3rdparty ${PROJECT_SOURCE_DIR})


find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
file(GLOB src_cc crnn/*.cpp)
file(GLOB src_h crnn/*.hpp)

add_library(crnn SHARED ${src_cc} ${src_h} ${src_c_api})
target_link_libraries(crnn PRIVATE onnxruntime  ${OpenCV_LIBS})

add_executable(crnn_test ${PROJECT_SOURCE_DIR}/bin/crnn_test.cpp )
target_link_libraries(crnn_test PRIVATE crnn onnxruntime ${OpenCV_LIBS})
